package oop_05.homework_03;
//减
public class Sub extends Computer{
    public Sub(double num1, double num2, double result) {
        super(num1, num2, result);
    }
    public void sub(){
        this.setResult(getNum1()-getNum2());
        System.out.println( "sub---->"+getResult());
    }
}
